import axios from 'axios';
import { baseUrl } from '@/config/config';

// 教师账号密码登录
export const pwdLogin = (data) => axios.post(baseUrl + '/login', JSON.stringify(data));
//获取图片验证码
export const loadVecode = (data) => axios.get(baseUrl + '/randomImage/' + data);
//获取当前用户输入错误次数
export const getErrorCount = (data) => axios.get(baseUrl + '/getErrorCount?userName=' + data);
//检查登录状态
export const getTokenStatus = () => axios.get(baseUrl + '/getTokenStatus');
//退出登录状态
export const loginOut = () => axios.put(baseUrl + '/logout');
// 修改密码
export const changePassWord = (data) => axios.put(baseUrl + '/user/changePassWord', JSON.stringify(data));
